package cn.hxz.mapper;

import cn.hxz.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//教师mapper
public interface TeacherMapper {
    //查询所有
    List<Teacher> selectAll(@Param("name") String name,
                            @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    //保存
    void insert(Teacher teacher);

    //编辑
    void update(Teacher teacher);

    //删除
    void delete(int id);

    //获取单个
    Teacher selectOne(int id);
}
